package com.core.config.crud;

import com.baomidou.mybatisplus.extension.service.IService;
import com.pojo.parent.BaseDto;
import com.pojo.parent.PageResp;
import com.pojo.resp.RemoveResp;

import java.util.List;
import java.util.Map;

/**
 *  核心增删改查服务接口
 * @author Huawei
 * @date 2023-12-31 22:22
 */
public interface CrudService<T, D extends BaseDto> extends IService<T> {

    PageResp<D> page(Map<String,Object> paramMap);

    List<D> list(Map<String,Object> paramMap);


    void updateById(D dto);

    void saveOrUpdate(D dto);

    void insert(D dto);

    void remove(Long id);

    RemoveResp removeIds(Long[] id);
}
